dercilima
(usa Debian)
Enviado em 04/08/2009 - 16:59h
ola pessoal boa tarde..
eu estou intalando o squid em um servidor aki na empresa..
eu to quebrando a kbeça ja faz alguns dias ..
mas nao estou conseguindo instalar e configurar ..
eu ja encontrei inumeros tutoriais otimos.
sigo os passos certinho.. mas nao da certo ..
haa eu uso o slackware 12.2
os passos saoo:
fiz o download da versao Squid2.5 STABLE12
ja descompactei em /usr/servidor/squid
e compilei ..
# ./configure \
--prefix=/usr \
--exec_prefix=/usr/local/sbin \
--bindir=/usr/local/sbin \
--sbindir=/usr/local/sbin \
--libexecdir=/usr/lib/squid \
--sysconfdir=/etc/squid \
--localstatedir=/var/spool/squid \
--datadir=/usr/share/squid \
--enable-async-io \
--enable-storeio=coss,ufs,aufs,diskd,null \
--enable-linux-netfilter \
--enable-arp-acl \
--enable-removal-policies=lru,heap \
--enable-snmp \
--enable-delay-pools \
--enable-htcp \
--enable-poll \
--enable-cache-digests \
--enable-underscores \
--enable-referer-log \
--enable-useragent-log \
--enable-auth=basic,digest,ntlm \
--enable-carp \
--enable-diskd \
--enable-icmp \
--enable-ssl \
--enable-default-err-language=Portuguese \
--enable-tproxy \
--with-pthreads \
--with-large-files
e instalei
# make
# make install
ate aki blza..
agora eh a configuração
# vi /etc/squid/squid.conf
e adicionei as seguintes linhas:
# Para habilitar o Proxy transparente
httpd_accel_port 80
httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
# Configuração do cache
cachê_mem 64 MB
maximum_object_size_in_memory 63 KB
maximum_object_size 512 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 100 16 256
# Localização do log de acessos do Squid
cache_access_log /var/log/squid/access.log
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 $ filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
# Autenticacao de usuarios
#auth_param basic program /usr/local/libexec/ncsa_auth /etc/squid/squid_passwd
#acl autentificados proxy_auth REQUIRED
#http_access allow autentificados
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
criei o grupo e usuario..
# groupadd squid
# useradd -g squid -d /var/spool/squid -s /bin/false squid
agora eh que vem o problema ..
para criar o cache do squid
# /usr/sbin/squid -f /etc/squid/squid.conf -z
dai aparece a seguinte msg..
root@servidor:/etc/squid# /usr/sbin/squid -z
2009/08/04 16:35:28| WARNING cache_mem is larger than total disk cache space!
2009/08/04 16:35:28| Creating Swap Directories
FATAL: Failed to make swap directory /var/spool/squid/00: (13) Permission denied
Squid Cache (Version 2.5.STABLE12): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
por favor..
alguem de uma dica .. ai ..
uma ideiaa..
pq eu ja tentei quase tudo..
valew galera..